//
//  ArrayExtensions.swift
//  hello
//
//  Created by 赵康 on 2024/11/12.
//

extension Array {
	func chunked(into size: Int) -> [[Element]] {
		return stride(from: 0, to: count, by: size).map {
			Array(self[$0 ..< Swift.min($0 + size, count)])
		}
	}
}
